package com.jiaai.cloud.user.service.impl;

import com.jiaai.cloud.user.entity.TFollow;
import com.jiaai.cloud.user.mapper.TFollowMapper;
import com.jiaai.cloud.user.service.ITFollowService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jiaai.cloud.user.vo.FansVO;
import com.jiaai.cloud.user.vo.FollowVO;
import com.jiaai.cloud.user.vo.UserVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 主播关注表 服务实现类
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-01
 */
@Service
public class TFollowServiceImpl extends ServiceImpl<TFollowMapper, TFollow> implements ITFollowService {

    @Override
    public List<FollowVO> findFollowByUserId(String userId) {
        return baseMapper.findFollowByUserId(userId);
    }

    @Override
    public List<FansVO> findFansByUserId(String userId) {
        return baseMapper.findFansByUserId(userId);
    }

    @Override
    public List<FollowVO> findAnchorFollow(String anchorId) {
        return baseMapper.findAnchorFollow(anchorId);
    }


}
